import request from '@/common/utils/request'
import {
	serv
} from '@/common/utils/config'

// 查询订单信息
export function getOrdersItemBySn(data) {
	return request(serv.order + '/api/saleAfter/getOrdersItemBySn', {
		method: 'get',
		data: data
	})
}

// 提交售后单
export function submitAftersale(data) {
	return request(serv.order + '/api/saleAfter/batchAdd', {
		method: 'post',
		data: data
	})
}

// 是否可以退货
export function isSubmitAftersale(data) {
	return request(serv.order + '/api/orders/goSaleAfter', {
		method: 'post',
		data: data
	})
}

// 确认收货
export function confirmReceipt(data) {
	return request(serv.order + '/api/saleAfter/confirmReceipt', {
		method: 'get',
		data: data
	})
}

// 获取物流信息
export function getLogistics(data) {
	return request(serv.order + '/api/saleAfter/getLogistics', {
		method: 'get',
		data: data
	})
}

//查看收货状态
export function showLogistics(data){// productThumbnail
	return request(serv.order+ 'api/saleAfter/getLogistics'),{
		method: 'get',
			data:data
	}
}
